CREATE TABLE [dbo].[T_USER_ROLE]
(
[USER_ID] [bigint] NOT NULL,
[ROLE_ID] [bigint] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_USER_ROLE] ADD CONSTRAINT [PK_T_USER_ROLE] PRIMARY KEY CLUSTERED  ([USER_ID], [ROLE_ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_USER_ROLE] ADD CONSTRAINT [FK__T_USER_RO__ROLE___59063A47] FOREIGN KEY ([ROLE_ID]) REFERENCES [dbo].[T_ROLE] ([ROLE_ID])
GO
ALTER TABLE [dbo].[T_USER_ROLE] ADD CONSTRAINT [FK_T_USER_ROLE_T_USER] FOREIGN KEY ([USER_ID]) REFERENCES [dbo].[T_USER] ([USER_ID])
GO
